/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/13 9:23
 * @copyright: 博为峰
 */
public class Array2Demo01 {
    public static void main(String[] args) {
        // 数据类型[][] 数组名 = new 数据类型[二维数组中一维数组的个数][一维数组中元素的个数]
        int[][] arr = new int[3][2];
        arr[0][0] = 1;
        arr[1][1] = 2;
//        System.out.println(arr[0][0]);//1
//        System.out.println(arr[2][0]);//0
//        System.out.println(arr);//[[I@3ac3fd8b
//        System.out.println(arr[0]);//[I@5594a1b5
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.println(arr[i][j]);
            }
        }
    }
}
